package com.typeinfo.nullObject;

public class Position {
    private String title;
    private Person person;
    public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Person getPerson() {
		return person;
	}
	public void setPerson(Person person) {
		this.person = person;
		if(this.person==null){
			person=Person.Null;
		}
	}
	public Position(String jobTitle,Person employ){
    	title=jobTitle;
    	person=employ;
    }
    public Position(String jobTitle){
    	title=jobTitle;
    	person=Person.Null;
    }
    public String toString() {
    	return "Position: "+title+" "+person;
    }
}
